<template>
	<view class="phone">
	  <image src="../../static/mine/pho.png" mode=""></image>
      <view class="text">{{content}}</view>
	  <view class="sub"><text @click="cancel()">{{title}}</text><text @click="submit()">{{text}}</text></view>
	</view>
</template>

<script setup lang="ts">
const props = defineProps({
  title: String,
  text:String,
  content:String,
});
const emits = defineEmits(['cancel','submit']);
function cancel(){
	emits('cancel');
}
function submit(){
	emits('submit');
}
</script>

<style scoped lang="less">
	.phone{
		width: 700rpx;
		height: 366rpx;
		background: #FFFFFF;
		border-radius: 5px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-around;
		padding: 30rpx;
		box-sizing: border-box;
		image{
			width: 130rpx;
			height: 130rpx;
			margin-top: -60px;
		}
		.text{
			font-size: 28rpx;
			font-family: PingFangSC-Medium, PingFang SC;
			font-weight: 500;
			color: #333333;
		}
		.sub{
			width: 100%;
			display: flex;
			align-items: center;
			justify-content: space-around;
			text{
				width: 228rpx;
				height:80rpx;
				background: #FFFFFF;
				border-radius: 5px;
				font-size: 36rpx;
				font-weight: 400;
				text-align: center;
				line-height: 80rpx;
			}
			text:nth-of-type(1){
				border: 1px solid #1B91FF;
				box-sizing: border-box;
				color: #1B91FF;
			}
			text:nth-of-type(2){
				background: #1B91FF;
				color: #FFFFFF;
			}
		}
	}
</style>
